NXP Semiconductors /LPC408x_7x /USB /RXPLEN

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as RXPLEN

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0PKT_LNGTH0 (DATA_IS_INVALID_)DV 0 (PKT_RDY)PKT_RDY 0RESERVED

DV=DATA_IS_INVALID_

Description

USB Receive Packet Length

Fields

PKT_LNGTH

The remaining number of bytes to be read from the currently selected endpoint’s buffer. When this field decrements to 0, the RxENDPKT bit will be set in USBDevIntSt.

DV

Data valid. This bit is useful for isochronous endpoints. Non-isochronous endpoints do not raise an interrupt when an erroneous data packet is received. But invalid data packet can be produced with a bus reset. For isochronous endpoints, data transfer will happen even if an erroneous packet is received. In this case DV bit will not be set for the packet.

0 (DATA_IS_INVALID_): Data is invalid.

1 (DATA_IS_VALID_): Data is valid.

PKT_RDY

The PKT_LNGTH field is valid and the packet is ready for reading.

RESERVED

Reserved. The value read from a reserved bit is not defined.

Links

()